package com.houtai.dao;

import com.houtai.bean.TdProjectExperience;
import com.houtai.bean.vo.resume.TdProjectExperienceList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdProjectExperienceDao {
    /**
     * @Purpose:    添加项目经历
     * @param:      tdProjectExperience
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdProjectExperience(TdProjectExperience tdProjectExperience);
    /**
     * @Purpose   查找项目经历列表
     * @param     resume_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdProjectExperienceList>
     */
    List<TdProjectExperienceList> findTdProjectExperienceList(int resume_id);
    
    /**
     * @Purpose:    根据用户id查找项目经历
     * @param:      user_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     int
     */
    TdProjectExperience findTdProjectExperience(@Param("user_id")int user_id,
                                                @Param("project_experience_id")int project_experience_id);
    /**
     * @Purpose:    修改项目经历
     * @param:      tdResume
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdProjectExperience(TdProjectExperience tdProjectExperience);

    /**
     * @Purpose:    修改项目经历状态
     * @param:      tdResume
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdProjectExperienceState(@Param("user_id")int user_id);
}
